/*
 * AbstractJsonObject.java
 * This file contains Boeing intellectual property. It
 * may contain information about Boeing processes that are part of the Company's
 * competitive advantage. Release of this file requires prior approval from
 * Luxoft Management. Copyright (c) 2008, The Boeing Company All Rights Reserved
 */
package json;

import java.io.Serializable;
import java.util.Map;

/**
 *
 * @author dakhoa
 * @version 1.0
 */
public abstract class AbstractJsonObject implements Serializable {

    public String toJson() {
        return JsonUtil.toJson(serializeFields());
    }

    protected abstract Map<String, Object> serializeFields();
}
